import {legacy_createStore as createStore} from "redux"
import shopReducer from "./shopreducer"
import thunk from "redux-thunk" // 让redux来支持异步得一个中间件
import logger from "redux-logger" // 打印redux日志的
import {combineReducers,applyMiddleware} from "redux" // applyMiddleware来处理中间件得
let reducer = combineReducers({
    shopReducer
})
export default createStore(reducer,applyMiddleware(thunk,logger))